-- widgets/bboycloudsover.lua
local Widget = require "widgets/widget"
local UIAnim = require "widgets/uianim"

local BboyCloudsOver = Class(Widget, function(self, owner)
    Widget._ctor(self, "BboyCloudsOver")
    self.owner = owner

    self:SetClickable(false)
    self:SetHAnchor(ANCHOR_MIDDLE)
    self:SetVAnchor(ANCHOR_MIDDLE)
    self:SetScaleMode(SCALEMODE_FIXEDSCREEN_NONDYNAMIC)

    self.clouds = self:AddChild(UIAnim())
    self.clouds:GetAnimState():SetBank("clouds_ol")
    self.clouds:GetAnimState():SetBuild("clouds_ol")
    self.clouds:GetAnimState():SetForceSinglePass(true)
    self.clouds:GetAnimState():PlayAnimation("idle", true)
    self.clouds:GetAnimState():SetMultColour(1, 1, 1, 0.5)

    self:Hide() -- 默认隐藏，需要时再 Show
end)

return BboyCloudsOver